/*
 * @Author: 邱狮杰
 * @Date: 2021-05-14 23:10:33
 * @LastEditTime: 2021-05-14 23:30:19
 * @FilePath: /weddingdress/src/components/button/index.tsx
 * @Description: button components
 */
import { CSSProperties, MouseEvent } from "react";
import { FC } from "react";
import "./index.scss";
type Props = {
  style?: CSSProperties;
  onProxyClick?: (
    event: MouseEvent<HTMLButtonElement, globalThis.MouseEvent>
  ) => void;
  content: string;
};

const Button: FC<Props> = ({ style, content, onProxyClick }) => {
  return (
    <button onClick={onProxyClick} style={style} className="button">
      {content}
    </button>
  );
};

export default Button;
